<?php


namespace app\common\model;


use think\facade\Request;
use think\Model;
use think\model\concern\SoftDelete;

class Article extends Model
{
    use SoftDelete;
    public static function getList($where = array(), $pageSize, $order = ['sort', 'id' => 'desc'])
    {
        $list = self::where($where)
            ->order($order)
            ->paginate($pageSize, false, ['query' => Request::get()]);
        return $list;
    }
}
